package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.pojo.entity.Channel;
import com.heima.pojo.vo.ChannelVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * \* User: chy
 * \* Date: 2025/8/24   20:27
 * \* Description:
 * \
 */
@Mapper
public interface ChannelMapper extends BaseMapper<Channel> {
    /**
     * 查询所有频道
     * @param innerCode
     * @return
     */
    List<ChannelVO> channelList(String innerCode);

    @Delete("delete from tb_channel where inner_code=#{innerCode}")
    void deleteByInnerCode(String innerCode);
}
